'use strict';

module.exports = (option, app) => {
    return async (ctx, next) => {
        ctx.state.csrf = ctx.csrf;
        console.log(ctx.csrf);
        await next();
    };
};